package com.xbongbong.paas.pojo.workflow.settings.vo;

import com.xbongbong.paas.pojo.workflow.settings.WorkflowListPoJo;
import com.xbongbong.paas.pojo.workflow.settings.WorkflowPermissionPojo;
import com.xbongbong.paas.toolbox.helper.PageHelper;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/05/10 10:26
 */
@Getter
@Setter
@ToString
public class WorkFlowListVO implements Serializable {

    private static final long serialVersionUID = -5173442208610947882L;

    private List<WorkflowListPoJo> workFlowList;

    private PageHelper pageHelper;

    private WorkflowPermissionPojo workflowPermission;
    /**
     * 套餐内，工作流执行条数
     */
    private Integer usedValue;
    /**
     * 套餐内，工作流总数
     */
    private Integer totalValue;

    /**
     * 剩余使用率
     */
    private String usageRate;

    /**
     * 少于10%，用于提示红色字体
     */
    private Integer notMuch;


    public WorkFlowListVO() {
    }

    public WorkFlowListVO(List<WorkflowListPoJo> workFlowList, PageHelper pageHelper, WorkflowPermissionPojo workflowPermission, Integer totalValue,
                          Integer usedValue, String usageRate, Integer notMuch) {
        this.workFlowList = workFlowList;
        this.pageHelper = pageHelper;
        this.workflowPermission = workflowPermission;
        this.totalValue = totalValue;
        this.usedValue = usedValue;
        this.usageRate = usageRate;
        this.notMuch = notMuch;
    }
}
